Inheritance allows you to reuse and customize existing code inside a new class.
继承允许您在新的类中重用和自定义现有的代码。
The goal for the suite is to show any relationship that is either explicitly in the code (method calls, inheritance, etc) or done so at runtime (calls to interfaces or base classes).
该套件的目标就是展示代码中显露出来的关系(方法调用、继承等等)和运行时出现的关系(对接口或基类的调用)。
Unfortunately, tossing out private and multiple inheritance has cost us dearly in terms of code reuse.
遗憾的是,彻底放弃私有继承和多重继承会使我们在代码重用方面付出昂贵的代价。
应用推荐